﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TimKiemNangCao.aspx.cs" Inherits="BookBuy.TimKiemNangCao" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
Tìm Kiếm Nâng Cao
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentDescription" runat="server">
Bạn muốn tìm gì ?
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<table>
    <tr>
        <td>Tên Sách</td>
        <td>
            <asp:TextBox ID="txtTenSach" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>Thể Loại</td>
        <td>
            <asp:DropDownList ID="ddlTheLoai" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>Giá Từ</td>
</td>
        <td>
            <asp:DropDownList ID="ddlGiaTu" runat="server">
            <asp:ListItem Value="0">0</asp:ListItem>
                <asp:ListItem Value="20000">20.000</asp:ListItem>
                <asp:ListItem Value="50000">50.000</asp:ListItem>
                <asp:ListItem Value="100000">100.000</asp:ListItem>
                <asp:ListItem Value="200000">200.000</asp:ListItem>
                <asp:ListItem Value="500000">500.000</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>Đến&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="ddlGiaDen" runat="server">
         
                <asp:ListItem Value="50000">50.000</asp:ListItem>
                <asp:ListItem Value="100000">100.000</asp:ListItem>
                <asp:ListItem Value="200000">200.000</asp:ListItem>
                <asp:ListItem Value="500000">500.000</asp:ListItem>
            </asp:DropDownList>
&nbsp;&nbsp;</td>
    </tr>
    <tr>
        <td>Tác Giả    <td>
            <asp:TextBox ID="txtTacGia" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr><td colspan="3">
        <asp:Button ID="btnTim" runat="server" onclick="btnTim_Click" 
            Text="<%$ Resources:lang, search %>" Width="131px" />
        </td></tr>

    </table>
    <h4>Kết Quả</h4>
    <hr />
    <table id="box-table-a">
   
    <tr>
        <td>Tên Sách</td>
        <td>Giá</td>
        <td>Tác Giả</td>
        <td>Thể Loại</td>
        <td>Số Trang</td>
        <td>Ngày Phát Hành</td>
    </tr>
    <%foreach(BookBuy.SANPHAM sach in dsKetQua){ %>
    <tr>
        <td><%=sach.TENSP %></td>
        <td><%=sach.GIABAN %></td>
        <td><%=sach.TACGIA %></td>
        <td><%=sach.THELOAI.TENTHELOAI %></td>
        <td><%=sach.SOTRANG %></td>
        <td><%=sach.NGAYPHATHANH.ToShortDateString() %></td>
    </tr>
    <%} %>
</table>

</asp:Content>
